View Javadoc
1   /*
2    * Copyright (C) 2003-2012 David E. Berry
3    *
4    * This library is free software; you can redistribute it and/or
5    * modify it under the terms of the GNU Lesser General Public
6    * License as published by the Free Software Foundation; either
7    * version 2.1 of the License, or (at your option) any later version.
8    *
9    * This library is distributed in the hope that it will be useful,
10   * but WITHOUT ANY WARRANTY; without even the implied warranty of
11   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12   * Lesser General Public License for more details.
13   *
14   * You should have received a copy of the GNU Lesser General Public
15   * License along with this library; if not, write to the Free Software
16   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
17   *
18   * A copy of the GNU Lesser General Public License may also be found at
19   * http://www.gnu.org/licenses/lgpl.txt
20   */
21  package org.synchronoss.cpo.jdbc.meta;
22  
23  import org.synchronoss.cpo.CpoException;
24  import org.synchronoss.cpo.exporter.MetaXmlObjectExporter;
25  import org.synchronoss.cpo.jdbc.exporter.JdbcMetaXmlObjectExporter;
26  import org.synchronoss.cpo.meta.CpoMetaDescriptor;
27  
28  /**
29   *
30   * @author dberry
31   */
32  public class JdbcCpoMetaDescriptor extends CpoMetaDescriptor {
33    private boolean supportsBlobs = false;
34    private boolean supportsCalls = false;
35    private boolean supportsMillis = false;
36    private boolean supportsSelect4Update = false;
37  
38  
39    public JdbcCpoMetaDescriptor(String name, boolean caseSensitive) throws CpoException {
40      super(name, caseSensitive);
41    }
42  
43    @Override
44    protected Class getMetaAdapterClass() throws CpoException {
45      return JdbcCpoMetaAdapter.class;
46    }
47  
48    @Override
49    protected MetaXmlObjectExporter getMetaXmlObjectExporter() {
50      return new JdbcMetaXmlObjectExporter(this);
51    }
52  
53    public boolean isSupportsBlobs() {
54      return supportsBlobs;
55    }
56  
57    public void setSupportsBlobs(boolean supportsBlobs) {
58      this.supportsBlobs = supportsBlobs;
59    }
60  
61    public boolean isSupportsCalls() {
62      return supportsCalls;
63    }
64  
65    public void setSupportsCalls(boolean supportsCalls) {
66      this.supportsCalls = supportsCalls;
67    }
68  
69    public boolean isSupportsMillis() {
70      return supportsMillis;
71    }
72  
73    public void setSupportsMillis(boolean supportsMillis) {
74      this.supportsMillis = supportsMillis;
75    }
76  
77    public boolean isSupportsSelect4Update() {
78      return supportsSelect4Update;
79    }
80  
81    public void setSupportsSelect4Update(boolean supportsSelect4Update) {
82      this.supportsSelect4Update = supportsSelect4Update;
83    }
84  }