db
Class DbTableView

java.lang.Object
  extended by db.DbTableView

public class DbTableView
extends Object


Field Summary
protected  String[] attributes
           
static String DEFAULT_TOKEN
           
static int INDEX_PK
           
 String name
           
static int OFFSET_PK
           
protected  String[] tokens
           
 
Constructor Summary
DbTableView(String name, String... attributes)
           
DbTableView(String name, String[] attributes, String[] tokens)
           
 
Method Summary
 String createCountPKQuery()
           
 String createCountValueQuery(int attr)
           
 String createfindPrimaryKeyQuery()
           
 String createInsertQuery(boolean generatedPK)
           
 String createSelectQuery(String selection)
           
 String getAttribute(int i)
           
 String getJdbcToken(int i)
           
 String getName()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INDEX_PK

public static final int INDEX_PK
See Also:
Constant Field Values

OFFSET_PK

public static final int OFFSET_PK
See Also:
Constant Field Values

DEFAULT_TOKEN

public static final String DEFAULT_TOKEN
See Also:
Constant Field Values

name

public final String name

attributes

protected final String[] attributes

tokens

protected String[] tokens
Constructor Detail

DbTableView

public DbTableView(String name,
                   String[] attributes,
                   String[] tokens)

DbTableView

public DbTableView(String name,
                   String... attributes)
Method Detail

getName

public final String getName()

getAttribute

public String getAttribute(int i)

getJdbcToken

public String getJdbcToken(int i)

size

public int size()

createCountValueQuery

public final String createCountValueQuery(int attr)

createCountPKQuery

public final String createCountPKQuery()

createfindPrimaryKeyQuery

public final String createfindPrimaryKeyQuery()

createSelectQuery

public final String createSelectQuery(String selection)

createInsertQuery

public final String createInsertQuery(boolean generatedPK)


Copyright © 2012. All Rights Reserved.