org.jboss.dna.common.jdbc.model.spi
Class TableTypeBean

java.lang.Object
  extended by org.jboss.dna.common.jdbc.model.spi.CoreMetaDataBean
      extended by org.jboss.dna.common.jdbc.model.spi.DatabaseNamedObjectBean
          extended by org.jboss.dna.common.jdbc.model.spi.TableTypeBean
All Implemented Interfaces:
Serializable, CoreMetaData, DatabaseNamedObject, TableType

public class TableTypeBean
extends DatabaseNamedObjectBean
implements TableType

Provides database table type specific metadata.

The table type is:

  1. TABLE_TYPE String => table type. Typical types are "TABLE", "VIEW", "SYSTEM TABLE", "GLOBAL TEMPORARY", "LOCAL TEMPORARY", "ALIAS", "SYNONYM".
@author Sergiy Litsenko

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.jboss.dna.common.jdbc.model.api.TableType
DEF_TABLE_TYPE_ALIAS, DEF_TABLE_TYPE_GLOBAL_TEMP, DEF_TABLE_TYPE_LOCAL_TEMP, DEF_TABLE_TYPE_SYNONYM, DEF_TABLE_TYPE_SYS_TABLE, DEF_TABLE_TYPE_TABLE, DEF_TABLE_TYPE_VIEW
 
Constructor Summary
TableTypeBean()
          Default constructor
 
Method Summary
 Boolean isAlias()
          Is current table type represents ALIAS
 Boolean isAlias(String tableTypeName)
          Is table type represents ALIAS
 Boolean isGlobalTemporary()
          Is current table type represents GLOBAL TEMPORARY
 Boolean isGlobalTemporary(String tableTypeName)
          Is current table type represents GLOBAL TEMPORARY
 Boolean isLocalTemporary()
          Is current table type represents LOCAL TEMPORARY
 Boolean islocalTemporary(String tableTypeName)
          Is table type represents LOCAL TEMPORARY
 Boolean isSynonym()
          Is current table type represents SYNONYM
 Boolean isSynonym(String tableTypeName)
          Is table type represents SYNONYM
 Boolean isSystemTable()
          Is current table type represents SYSTEM TABLE
 Boolean isSystemTable(String tableTypeName)
          Is table type represents SYSTEM TABLE
 Boolean isTable()
          Is current table type represents TABLE
 Boolean isTable(String tableTypeName)
          Is table type represents TABLE
 Boolean isView()
          Is current table type represents VIEW
 Boolean isView(String tableTypeName)
          Is table type represents VIEW
 
Methods inherited from class org.jboss.dna.common.jdbc.model.spi.DatabaseNamedObjectBean
addExtraProperty, deleteExtraProperty, getExtraProperties, getExtraProperty, getName, getRemarks, setName, setRemarks
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.dna.common.jdbc.model.api.DatabaseNamedObject
addExtraProperty, deleteExtraProperty, getExtraProperties, getExtraProperty, getName, getRemarks, setName, setRemarks
 

Constructor Detail

TableTypeBean

public TableTypeBean()
Default constructor

Method Detail

isTable

public Boolean isTable(String tableTypeName)
Is table type represents TABLE

Specified by:
isTable in interface TableType
Parameters:
tableTypeName - the table type string
Returns:
true if table type represents TABLE

isTable

public Boolean isTable()
Is current table type represents TABLE

Specified by:
isTable in interface TableType
Returns:
true if current table type represents TABLE

isView

public Boolean isView(String tableTypeName)
Is table type represents VIEW

Specified by:
isView in interface TableType
Parameters:
tableTypeName - the table type string
Returns:
true if table type represents VIEW

isView

public Boolean isView()
Is current table type represents VIEW

Specified by:
isView in interface TableType
Returns:
true if current table type represents VIEW

isSystemTable

public Boolean isSystemTable(String tableTypeName)
Is table type represents SYSTEM TABLE

Specified by:
isSystemTable in interface TableType
Parameters:
tableTypeName - the table type string
Returns:
true if table type represents SYSTEM TABLE

isSystemTable

public Boolean isSystemTable()
Is current table type represents SYSTEM TABLE

Specified by:
isSystemTable in interface TableType
Returns:
true if current table type represents SYSTEM TABLE

isGlobalTemporary

public Boolean isGlobalTemporary(String tableTypeName)
Is current table type represents GLOBAL TEMPORARY

Specified by:
isGlobalTemporary in interface TableType
Parameters:
tableTypeName - the table type string
Returns:
true if current table type represents GLOBAL TEMPORARY

isGlobalTemporary

public Boolean isGlobalTemporary()
Is current table type represents GLOBAL TEMPORARY

Specified by:
isGlobalTemporary in interface TableType
Returns:
true if table type represents GLOBAL TEMPORARY

islocalTemporary

public Boolean islocalTemporary(String tableTypeName)
Is table type represents LOCAL TEMPORARY

Specified by:
islocalTemporary in interface TableType
Parameters:
tableTypeName - the table type string
Returns:
true if table type represents LOCAL TEMPORARY

isLocalTemporary

public Boolean isLocalTemporary()
Is current table type represents LOCAL TEMPORARY

Specified by:
isLocalTemporary in interface TableType
Returns:
true if current table type represents LOCAL TEMPORARY

isAlias

public Boolean isAlias(String tableTypeName)
Is table type represents ALIAS

Specified by:
isAlias in interface TableType
Parameters:
tableTypeName - the table type string
Returns:
true if table type represents ALIAS

isAlias

public Boolean isAlias()
Is current table type represents ALIAS

Specified by:
isAlias in interface TableType
Returns:
true if current table type represents ALIAS

isSynonym

public Boolean isSynonym(String tableTypeName)
Is table type represents SYNONYM

Specified by:
isSynonym in interface TableType
Parameters:
tableTypeName - the table type string
Returns:
true if table type represents SYNONYM

isSynonym

public Boolean isSynonym()
Is current table type represents SYNONYM

Specified by:
isSynonym in interface TableType
Returns:
true if current table type represents SYNONYM


Copyright © 2008-Present JBoss a division of Red Hat. All Rights Reserved.