Package org.apache.openjpa.jdbc.schema
Class ColumnIO
java.lang.Object
org.apache.openjpa.jdbc.schema.ColumnIO
- All Implemented Interfaces:
Serializable
Metadata about column I/O in a specific context. In the context of
a foreign key, the standard foreign key columns are indexed first, then
the constant columns.
- Author:
- Abe White
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisAllInsertable(int col, boolean nullValue) Whether all columns up to but excluding the given index are insertable.booleanisAllInsertable(Column[] cols, boolean nullValue) Equivalent toisAllInsertable (cols.length, nullValue).booleanisAllInsertable(ForeignKey fk, boolean nullValue) Return true if all columns for the given key are insertable.booleanisAllUpdatable(int col, boolean nullValue) Whether all columns up to but excluding the given index are updatable.booleanisAllUpdatable(Column[] cols, boolean nullValue) Equivalent toisAllUpdatable (cols.length, nullValue).booleanisAllUpdatable(ForeignKey fk, boolean nullValue) Return true if all columns for the given key are updatable.booleanisAnyInsertable(int col, boolean nullValue) Whether any column up to but excluding the given index is insertable.booleanisAnyInsertable(Column[] cols, boolean nullValue) Equivalent toisAnyInsertable (cols.length, nullValue).booleanisAnyInsertable(ForeignKey fk, boolean nullValue) Return true if any columns for the given key are insertable.booleanisAnyUpdatable(int col, boolean nullValue) Whether any column up to but excluding the given index is updatable.booleanisAnyUpdatable(Column[] cols, boolean nullValue) Equivalent toisAnyUpdatable (cols.length, nullValue).booleanisAnyUpdatable(ForeignKey fk, boolean nullValue) Return true if any columns for the given key are updatable.booleanisInsertable(int col, boolean nullValue) Whether the column at the given index is insertable in this context.booleanisInsertable(Column col, boolean nullValue) Equivalent toisInsertable (0, nullValue), but returns false if the given column is null.booleanisUpdatable(int col, boolean nullValue) Whether the column at the given index is updatable in this context.booleanisUpdatable(Column col, boolean nullValue) Equivalent toisUpdatable (0, nullValue), but returns false if the given column is null.voidsetInsertable(int col, boolean insertable) Whether the column at the given index is insertable in this context.voidsetNullInsertable(int col, boolean insertable) Whether this context can insert the given column as null/default in this context.voidsetNullUpdatable(int col, boolean updatable) Whether this context can set the given column to null/default in this context.voidsetUpdatable(int col, boolean updatable) Whether the column at the given index is updatable in this context.
-
Field Details
-
UNRESTRICTED
-
-
Constructor Details
-
ColumnIO
public ColumnIO()
-
-
Method Details
-
isInsertable
public boolean isInsertable(int col, boolean nullValue) Whether the column at the given index is insertable in this context. -
isInsertable
Equivalent toisInsertable (0, nullValue), but returns false if the given column is null. -
isAnyInsertable
public boolean isAnyInsertable(int col, boolean nullValue) Whether any column up to but excluding the given index is insertable. -
isAnyInsertable
Equivalent toisAnyInsertable (cols.length, nullValue). -
isAnyInsertable
Return true if any columns for the given key are insertable. -
isAllInsertable
public boolean isAllInsertable(int col, boolean nullValue) Whether all columns up to but excluding the given index are insertable. -
isAllInsertable
Equivalent toisAllInsertable (cols.length, nullValue). -
isAllInsertable
Return true if all columns for the given key are insertable. -
setInsertable
public void setInsertable(int col, boolean insertable) Whether the column at the given index is insertable in this context. -
setNullInsertable
public void setNullInsertable(int col, boolean insertable) Whether this context can insert the given column as null/default in this context. -
isUpdatable
public boolean isUpdatable(int col, boolean nullValue) Whether the column at the given index is updatable in this context. -
isUpdatable
Equivalent toisUpdatable (0, nullValue), but returns false if the given column is null. -
isAnyUpdatable
public boolean isAnyUpdatable(int col, boolean nullValue) Whether any column up to but excluding the given index is updatable. -
isAnyUpdatable
Equivalent toisAnyUpdatable (cols.length, nullValue). -
isAnyUpdatable
Return true if any columns for the given key are updatable. -
isAllUpdatable
public boolean isAllUpdatable(int col, boolean nullValue) Whether all columns up to but excluding the given index are updatable. -
isAllUpdatable
Equivalent toisAllUpdatable (cols.length, nullValue). -
isAllUpdatable
Return true if all columns for the given key are updatable. -
setUpdatable
public void setUpdatable(int col, boolean updatable) Whether the column at the given index is updatable in this context. -
setNullUpdatable
public void setNullUpdatable(int col, boolean updatable) Whether this context can set the given column to null/default in this context.
-