Package org.beangle.db.sequence.impl

Examples of org.beangle.db.sequence.impl.DefaultSequenceNamePattern


    }

    DataSource datasource = DataSourceUtil.getDataSource(dialect);
    OracleTableSequenceDao tableSequenceDao = new OracleTableSequenceDao();
    tableSequenceDao.setDataSource(datasource);
    tableSequenceDao.setRelation(new DefaultSequenceNamePattern());
    List<TableSequence> sequences = tableSequenceDao.getInconsistent();
    info(sequences);
    if (update) {
      adjust(tableSequenceDao, sequences);
    }
View Full Code Here


@Test
public class SequenceNamePatternTest {

  public void testGetTableName() {
    DefaultSequenceNamePattern pattern = new DefaultSequenceNamePattern();
    assertEquals("SYS_USERS_T", pattern.getTableName("SEQ_SYS_USERS_T"));
  }
View Full Code Here

  public void setUp() throws Exception {
    DataSource datasource = DataSourceUtil.getDataSource("oracle");
    if (null != datasource) {
      tableSequenceDao = new OracleTableSequenceDao();
      tableSequenceDao.setDataSource(datasource);
      tableSequenceDao.setRelation(new DefaultSequenceNamePattern());
    }
  }
View Full Code Here

TOP

Related Classes of org.beangle.db.sequence.impl.DefaultSequenceNamePattern

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.